package com.ala;

import com.ala.dao.DeviceMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.Resource;

@SpringBootConfiguration
//@EnableWebSecurity
@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
@ComponentScan("com.ala")
@MapperScan("com.ala.dao")
public class EmqserverApplication {

//	@Resource
//	static DeviceMapper deviceMapper;

	public static void main(String[] args) {
		SpringApplication.run(EmqserverApplication.class, args);
		System.out.println("----------------------------emq server spring boot runing-------------------------------");

//		System.out.println("null : "+deviceMapper==null);



	}

}
